<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ page import="entity.Course" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>更新选课</title>
  <script src="js/layui/layui.js"></script>
  <link rel="stylesheet" href="js/layui/css/layui.css">
</head>
<body>	
		<div align="left">
		 <span >
         <a href="Teachertable.jsp" class="layui-btn layui-btn-normal layui-btn-sm">返回</a>
         </span>
         </div>
          
		<h1 class="layui-table" align="center">选课信息</h1><br>
        
         <form class="layui-table" method="get" action="">
       <table align="center">
       <tr>
        	
              <th>课程编号</th>
              <th>课程名</th>
              <th>授课老师</th>
              <th>学分</th>
              <th>上课时间1</th>
              <th>上课时间2</th>
              <th>上课地点</th>
              <th>限选人数</th>
              <th>操作</th>
       </tr>
       <c:forEach var="s" items="${sessionScope.updateCourseById }">
       <tr>
       		<td><input  type="text" name="update_id" readonly="readonly" value="${s.getCourse_id()}" ></td>
       		<td><input  type="text" name="update_name"  value="${s.getCourse_name()}"></td>
       		<td><input  type="text" name="update_teacher"  value="${s.getTeacher() }"></td>
       		<td><input  type="text" name="update_point"  value="${s.getPoint() }"></td>
       		<td><input  type="text" name="update_time1"  value="${s.getTime1() }"> </td>
       		<td><input  type="text" name="update_time2"  value="${s.getTime2() }"></td>
       		<td><input  type="text" name="update_location"  value="${s.getLocation() }"></td>
       		<td><input  type="text" name="update_limited"  value="${s.getLimited() }"></td>
       		<td colspan="1">
       		<a href="UpdateCourse" type="button" class="layui-btn layui-btn-normal layui-btn-sm">提交此课 </a>
       		</td>
       </tr>
       </c:forEach>
      
       
       
         </table>
         
         </form>
          
        
  <script>
    //JavaScript代码区域
    layui.use('element', function() {
      var element = layui.element;
    });
  </script>
</body>
</html>